package com.rybbaby.tss.front.tssMemberCheckAttendance.dao;


import com.rybbaby.tss.core.web.dao.IGenericDao;
import com.rybbaby.tss.front.tssMemberCheckAttendance.entity.TssMemberCheckAttendance;

import java.util.List;
import java.util.Map;

/**
 * @description 会员考勤记录表数据库操作接口
 * 
 * @author 雷春琼
 * 
 * @createDate 2017-08-10 上午10:33:46
 */
public interface ITssMemberCheckAttendanceDao extends IGenericDao<TssMemberCheckAttendance> {



    /**
     * 根据报班记录ids逻辑删除考勤记录
     * @return
     */
    int deleteCheckAttendanceRecord(String attendIds);

    int batchAttendance(String paramId, String adminUserId);

    List<TssMemberCheckAttendance> attendanceNumber(String lessonsId,int attendenceStatus) throws Exception;

    List<TssMemberCheckAttendance> sumNumber(String lessonsId) throws Exception;

    List<TssMemberCheckAttendance> notAttendanceIds(String lessonsId) throws Exception;

    int attendance(Integer attendenceStatus, String adminUserId, String id);

    int Remarks(String remark, String adminUserId, String id);

    List<TssMemberCheckAttendance> findHistory(String paramId) throws Exception;

    List<Map<String,Object>> findTodayAttendanceStatisticsByType(String adminUserIds);

    List<Map<String,Object>> findClassAttendanceByType(String adminUserIds);

    Map<String, Object> findPackageInformation(String id);

    List<Map<String,Object>> findPackageInformationList(String ids);

    Map<String,Object> findAttendanceMaintenance(String attendanceId);

    int updateCheckAttendance(String adminUserId, String remark, Integer attendenceStatus,String attendanceId);

    Map<String,Object> findAttendanceMaintenancePackage(String attendanceId);

    Map<String,Object> attendanceStatistics(String lessonsId);
}
